package powerControl.service.impl;

import powerControl.dao.IUserDao;
import powerControl.entity.User;
import powerControl.service.IUserService;

public class UserServiceImpl implements IUserService{
	
	private IUserDao userDao;
	
	public boolean checkPowerForUserAndUrl(User user, String url) {
		return userDao.checkPowerForUserAndUrl(user, url);
	}
	
	public User findByNameAndPassword(User user) {
		return userDao.findByNameAndPassword(user);
	}
	
	public IUserDao getUserDao() {
		return userDao;
	}
	
	public void setUserDao(IUserDao userDao) {
		this.userDao = userDao;
	}
	
}
